Added gtk_cell_area_foreach_alloc() to further simplify GtkCellArea subclasses
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Mon, 6 Dec 2010 05:11:28 +0000 (14:11 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Mon, 6 Dec 2010 05:11:28 +0000 (14:11 +0900)
commit2588165bfb50dcdf81e08b3e0126044ade1e98bb
treebf215c7b3322e51bbd351a1a8b376f70f0ec7576
parent4b065f53899204725b4fafd2ccac1a21afe1c24b
Added gtk_cell_area_foreach_alloc() to further simplify GtkCellArea subclasses

gtk_cell_area_foreach_alloc() itterates over an allocated list of cells
and calls a callback with the cell's allocation until the callback returns
TRUE.
  - Removed vfunc get_cell_allocation() and implemented
    gtk_cell_area_get_cell_allocation() using foreach_alloc()
  - Added gtk_cell_area_get_cell_at_position() using foreach_alloc()
  - Removed GtkCellAreaBox ->event() implementation and implemented
    mouse "click" cell activation in GtkCellArea class directly using
    gtk_cell_area_get_cell_at_position().
docs/reference/gtk/gtk3-sections.txt
gtk/gtkcellarea.c
gtk/gtkcellarea.h
gtk/gtkcellareabox.c